package com.smbms.commons.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.smbms.commons.bean.Users;
import com.smbms.commons.config.JsonResult;

import java.util.List;

public interface UsersService extends IService<Users> {
    public JsonResult<String> login(Users user);

    public JsonResult<PageInfo<Users>> findAllUsers(Integer page);

    public JsonResult<PageInfo<Users>> findUserByNameAndRoleName(String name,Integer role,Integer page);

}
